package com.luca.framework.security;

import lombok.Getter;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;

/**
 * 自定义认证令牌
 *
 * @author luca
 */
public class CustomerAuthenticationToken extends UsernamePasswordAuthenticationToken {

    /**
     * 租户code
     */
    @Getter
    private final String code;

    public CustomerAuthenticationToken(Object principal, Object credentials, String code) {
        super(principal, credentials);
        this.code = code;
    }

}
